#ifndef __APP_COMMON_H__
#define __APP_COMMON_H__

#include "config.h"
#include "app_config.h"
#include "app.h"
#include "debug.h"

#include "drv_rtc.h"

#if (TCFG_NETWORK_MODULE_TYPE == NETWORK_MODULE_4G)||(TCFG_NETWORK_MODULE_TYPE == NETWORK_MODULE_NB)
void UTC_to_ZoneTime(const calendar_obj* utc_time, int timezone, calendar_obj* local_time);
#endif

char *strstr(char *str1, char *str2);

void string_to_hex(const char *input, char *output, int len);

void hex_to_string(const char* input, char *output, int len);

unsigned long utf8_to_unicode(const char *utf8_str);

int unicode_to_utf8(unsigned long unicode, unsigned char *utf8_str);

#endif